#include <iostream>
using namespace std;
int main()
{
    float weight, height, count;
    cin >> weight >> height;
    count = 1.0 * weight / (height * height);
    printf("%.1f\n", count);
    if (count > 25)
        cout << "PANG";
    else
        cout << "Hai Xing";
    return 0;
}
